//
//  SEGSideslipView.h
//  YYKitDemo
//
//  Created by 刘山 on 2017/11/9.
//  Copyright © 2017年 Sam. All rights reserved.
//

#import <UIKit/UIKit.h>
@protocol SEGDoorImageDelegate <NSObject>
-(void)seg_canOpenDoor:(BOOL)canOpen location:(CGPoint)location Event:(NSString*)event;
@end

@protocol SEGSideslipViewDelegate <NSObject>
-(void)seg_canOpenDoor:(BOOL)canOpen Event:(NSString*)event;
@end


@interface SEGDoorImageView : UIImageView
@property (nonatomic, assign) CGFloat padding;
@property (nonatomic, assign) id<SEGDoorImageDelegate> delegate;
@end


@interface SEGSideslipView : UIView<SEGDoorImageDelegate>
@property (nonatomic, assign) id<SEGSideslipViewDelegate> delegate;
@property (nonatomic, copy) NSString *doorName;
@property (nonatomic, strong)SEGDoorImageView *lockImageView;
@end
